<template>
  <div>
    <h2>事件修饰符</h2>
    <a href="https://www.baidu.com" @click.prevent="aa">百度一下</a>
    <!-- 案件修饰符 -->
    <input type="text" @keyup.enter = 'bb'>
  </div>
</template>

<script>
export default {
  methods: {
    aa() {
      console.log('123')
    },
    bb(e){
      console.log(e.target.value)
    }
  }
}
</script>
